.class public Les/v60;
.super Les/z60;
.source "ESAppUpdateTask.java"


# instance fields
.field b0:Landroid/app/Activity;

.field c0:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/y10;",
            ">;"
        }
    .end annotation
.end field

.field private d0:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/q60;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/estrongs/fs/f;Ljava/util/List;Ljava/lang/String;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Lcom/estrongs/fs/f;",
            "Ljava/util/List<",
            "Les/y10;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-static {p3}, Les/v60;->b(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    invoke-static {p4}, Lcom/estrongs/fs/f;->r(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p4

    invoke-direct {p0, p2, v0, p4}, Les/z60;-><init>(Lcom/estrongs/fs/f;Ljava/util/List;Lcom/estrongs/fs/g;)V

    .line 2
    iput-object p1, p0, Les/v60;->b0:Landroid/app/Activity;

    .line 3
    iput-object p3, p0, Les/v60;->c0:Ljava/util/List;

    .line 4
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    const/4 p2, 0x0

    iput-boolean p2, p1, Les/w80$a;->p:Z

    .line 5
    invoke-virtual {p0, p2}, Les/z60;->d(Z)V

    return-void
.end method

.method public static b(Ljava/util/List;)Ljava/util/List;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/y10;",
            ">;)",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 2
    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :goto_0
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/y10;

    .line 3
    new-instance v2, Lcom/estrongs/fs/a;

    invoke-virtual {v1}, Les/y10;->r()Les/b20;

    move-result-object v3

    invoke-virtual {v3}, Les/b20;->b()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v1}, Les/y10;->r()Les/b20;

    move-result-object v3

    invoke-virtual {v3}, Les/b20;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v1}, Les/y10;->r()Les/b20;

    move-result-object v3

    invoke-virtual {v3}, Les/b20;->f()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Lcom/estrongs/fs/a;->b(J)V

    .line 6
    invoke-virtual {v1}, Les/y10;->s()Ljava/lang/String;

    move-result-object v1

    const-string v3, "item_paste_name"

    invoke-virtual {v2, v3, v1}, Lcom/estrongs/fs/a;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    .line 7
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    return-object v0
.end method


# virtual methods
.method public varargs a(I[Ljava/lang/Object;)V
    .locals 4

    const/4 v0, 0x1

    if-eq p1, v0, :cond_0

    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 1
    :cond_0
    :try_start_0
    iget-object v0, p0, Les/v60;->d0:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    .line 2
    iget-object v0, p0, Les/s80;->c:Les/w80$a;

    iget-object v1, p0, Les/v60;->d0:Ljava/util/ArrayList;

    iget-object v2, p0, Les/s80;->c:Les/w80$a;

    iget-wide v2, v2, Les/w80$a;->d:J

    long-to-int v3, v2

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/q60;

    iget-object v1, v1, Les/q60;->a:Lcom/estrongs/fs/g;

    invoke-interface {v1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Les/w80$a;->q:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 3
    :catch_0
    :cond_1
    invoke-super {p0, p1, p2}, Les/z60;->a(I[Ljava/lang/Object;)V

    return-void
.end method

.method public y()Z
    .locals 6

    .line 1
    iget-object v0, p0, Les/z60;->G:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Les/v60;->d0:Ljava/util/ArrayList;

    .line 2
    invoke-super {p0}, Les/z60;->y()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 3
    :try_start_0
    iget-object v1, p0, Les/v60;->c0:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    iget-object v1, p0, Les/v60;->c0:Ljava/util/List;

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/y10;

    invoke-virtual {v1}, Les/y10;->r()Les/b20;

    move-result-object v1

    invoke-virtual {v1}, Les/b20;->h()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 4
    iget-object v1, p0, Les/v60;->c0:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/y10;

    invoke-virtual {v1}, Les/y10;->p()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    .line 5
    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    .line 6
    iget-object v3, p0, Les/v60;->d0:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/q60;

    iget-object v2, v2, Les/q60;->b:Ljava/lang/String;

    .line 7
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 8
    invoke-static {v1}, Lcom/estrongs/android/pop/utils/k;->b(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 9
    iget-object v3, p0, Les/v60;->b0:Landroid/app/Activity;

    new-instance v4, Les/v60$a;

    invoke-direct {v4, p0, v1, v2}, Les/v60$a;-><init>(Les/v60;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1

    .line 10
    :cond_0
    iget-object v1, p0, Les/v60;->b0:Landroid/app/Activity;

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/view/utils/b;->c(Landroid/app/Activity;Ljava/lang/String;)V

    goto :goto_1

    .line 11
    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 12
    iget-object v2, p0, Les/v60;->d0:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/q60;

    .line 13
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v4

    iget-object v5, v3, Les/q60;->b:Ljava/lang/String;

    invoke-virtual {v4, v5}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 14
    iget-object v3, v3, Les/q60;->b:Ljava/lang/String;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 15
    :cond_3
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_4

    .line 16
    iget-object v2, p0, Les/v60;->b0:Landroid/app/Activity;

    const/4 v3, 0x0

    invoke-static {v2, v1, v3}, Lcom/estrongs/android/pop/view/utils/b;->a(Landroid/app/Activity;Ljava/util/List;Ljava/util/List;)V
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    .line 17
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_4
    :goto_1
    return v0
.end method
